package com.lineage.server.serverpackets;

public class S_Fishing extends ServerBasePacket {
  private byte[] _byte;
  
  public S_Fishing(int objectId, int motionNum, int x, int y) {
    this._byte = null;
    buildPacket(objectId, motionNum, x, y);
  }
  
  private void buildPacket(int objectId, int motionNum, int x, int y) {
    writeC(158);
    writeD(objectId);
    writeC(motionNum);
    writeH(x);
    writeH(y);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
